﻿<loki:ViewWindow
    x:Class="Luna.UI.Wpf.Main"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    Title="Luna" 
    Height="529" 
    Width="615" 
    xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"
    xmlns:dxn="http://schemas.devexpress.com/winfx/2008/xaml/navbar" 
    WindowStartupLocation="CenterScreen" 
    xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon" 
    xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars" 
    xmlns:loki="clr-namespace:Loki.UI.Wpf;assembly=Loki.UI.Wpf"
    xmlns:luna="clr-namespace:Luna.UI;assembly=Luna.Core"
    WindowState="Maximized" 
    Icon="/Luna.UI.Wpf;component/Resources/Moon_Phase_Full.png">
    <Grid>
        <dxb:BarManager Name="barManager1" AllowCustomization="False" AllowHotCustomization="False" AllowQuickCustomization="False">
            <dxb:BarManager.Items>
                <dxb:BarButtonItem Content="Sauvegarder" Name="BBI_Save" Glyph="/Luna.UI.Wpf;component/Resources/mni_save.png" />
                <dxb:BarButtonItem Content="Ajouter un compte" Name="BBI_Account_AddAccount" Glyph="/Luna.UI.Wpf;component/Resources/note_add.png" />
                <dxb:BarButtonItem Content="Gestion" Name="BBI_Account_Admin" Glyph="/Luna.UI.Wpf;component/Resources/Accounting_Admin.png" />
                <dxb:BarButtonItem Content="Gestion" Name="BBI_Account_Categories" Glyph="/Luna.UI.Wpf;component/Resources/Accounting_Categories.png" RibbonStyle="Large" Command="luna:NavigationCommands.ACCOUNT_OPERATION_CATEGORIES" />
                <dxb:BarButtonItem Content="Rapports" Name="BBI_Account_Reports" LargeGlyph="/Luna.UI.Wpf;component/Resources/Accounting_Reporting.png" GlyphSize="Large" RibbonStyle="Large" BarItemDisplayMode="Default" />
                <dxb:BarButtonItem Content="Rafraichir" Name="BBI_Refresh" Glyph="/Luna.UI.Wpf;component/Resources/mni_refresh.png" />
                <dxb:BarButtonItem Content="Exporter" Name="BBI_Export" />
            </dxb:BarManager.Items>
            <DockPanel Name="dockPanel1">
                <dxr:RibbonControl Name="ribbonControl1" DockPanel.Dock="Top" AllowMinimizeRibbon="True" IsHeaderBorderVisible="True" MinimizationButtonVisibility="Auto" ShowApplicationButton="True" RibbonStyle="Office2010" IsMinimized="False">
                    <dxr:RibbonControl.ToolbarItemLinks>
                        <dxb:BarItemLink BarItemName="BBI_Save" />
                        <dxb:BarItemLink BarItemName="BBI_Refresh" />
                        <dxb:BarItemLink BarItemName="BBI_Export"/>
                    </dxr:RibbonControl.ToolbarItemLinks>
                    <dxr:RibbonControl.ApplicationMenu>
                        <dxr:ApplicationMenuInfo />
                    </dxr:RibbonControl.ApplicationMenu>
                    <dxr:RibbonDefaultPageCategory Caption="defaultCategory" Name="ribbonDefaultPageCategory1">
                        <dxr:RibbonPage Caption="Accueil" Name="ribbonPage3">
                        </dxr:RibbonPage>
                        <dxr:RibbonPage Caption="Comptes" Name="ribbonPage1">
                            <dxr:RibbonPageGroup Caption="Gestion" Name="ribbonPageGroup1">
                                <dxb:BarButtonItemLink BarItemName="BBI_Account_Admin" />
                                <dxb:BarButtonItemLink BarItemName="BBI_Account_AddAccount" />
                            </dxr:RibbonPageGroup>
                            <dxr:RibbonPageGroup Caption="Categories" Name="ribbonPageGroup2" >
                                <dxb:BarButtonItemLink BarItemName="BBI_Account_Categories" />
                            </dxr:RibbonPageGroup>
                            <dxr:RibbonPageGroup Caption="Rapports" Name="ribbonPageGroup3">
                                <dxb:BarButtonItemLink BarItemName="BBI_Account_Reports"  />
                            </dxr:RibbonPageGroup>
                        </dxr:RibbonPage>
                        <dxr:RibbonPage Caption="Projets" Name="ribbonPage2" />
                        <dxr:RibbonPage Caption="Rapports" Name="ribbonPag3" />
                    </dxr:RibbonDefaultPageCategory>
                </dxr:RibbonControl>
                <dxr:RibbonStatusBarControl DockPanel.Dock="Bottom" Name="ribbonStatusBarControl1" />
                <dxdo:DockLayoutManager  Name="dockLayoutManager1">
                    <dxdo:DockLayoutManager.LayoutRoot>
                        <dxdo:LayoutGroup Caption="LayoutRoot">
                            <dxdo:DocumentGroup ItemContentTemplateSelector="{StaticResource LokiTemplateSelector}" SelectedTabIndex="0" ItemWidth="1.52*" ItemsSource="{Binding Path=SubModels}">
                                <dxdo:DocumentGroup.ItemStyle>
                                    <Style TargetType="dxdo:DocumentPanel">
                                        <Setter Property="CloseCommand" Value="{Binding Close}" />
                                    </Style>
                                </dxdo:DocumentGroup.ItemStyle>
                                <dxdo:DocumentGroup.ItemCaptionTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding DisplayName}" />
                                    </DataTemplate>
                                </dxdo:DocumentGroup.ItemCaptionTemplate>
                            </dxdo:DocumentGroup>
                        </dxdo:LayoutGroup>
                    </dxdo:DockLayoutManager.LayoutRoot>
                </dxdo:DockLayoutManager>
            </DockPanel>
        </dxb:BarManager>       
    </Grid>
</loki:ViewWindow>
